﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace EarringsBackEnd
{
    public partial class frmZoomImage : Form
    {
        private Bitmap _image;

        public Bitmap Image
        {
            get { return _image; }
            set { _image = value; }
        }
        public frmZoomImage()
        {
            //_img = img;
            InitializeComponent();
            
        }

        private static frmZoomImage inst;
        public static frmZoomImage GetForm
        {
            get
            {
                if (inst == null || inst.IsDisposed)
                    inst = new frmZoomImage();
                return inst;
            }
        }


        private void frmViewImage_Load(object sender, EventArgs e)
        {
            pictureBox1.Image = _image;
        }

        private void btnPointEarringsBack_Click(object sender, EventArgs e)
        {

        }


        private void pictureBox1_MouseClick(object sender, MouseEventArgs e)
        {

        }

        private void pictureBox1_MouseDown(object sender, MouseEventArgs e)
        {
            Bitmap myBitmap = new Bitmap(pictureBox1.Image);
            Point myPoint = new Point(MousePosition.X, MousePosition.Y);

            MessageBox.Show("X:"+myPoint.X.ToString() + "   Y:" + myPoint.Y.ToString());
        }

    }
}
